package cn.pzh.cloud.client;

import cn.pzh.cloud.pojo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient("userservice")//与注册名一样
public interface UserClient {
    @RequestMapping("/user/{userId}")//与user控制层服务路径一样
    User queryById(@PathVariable("userId") Integer userId);
}
